<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:wh="http://java.sun.com/jsf/composite/webhib">

   <ui:composition template="../template.xhtml">
      <ui:define name="title">
         #{msg.title_profile}
      </ui:define>

      <ui:define name="content">
         <f:event type="preRenderView" listener="#{prof.profileListener}"/>

         <div id="profile-page" class="useradmin-page">
            <h1 class="page-header">#{msg.header_profile}</h1>
            <wh:pageMessage bean="#{prof}"/>

            <h:panelGroup id="profile-pane" styleClass="input-pane" layout="block">
               <h:form id="profile-form" prependId="false">
                  <wh:inputField id="displayname" label="#{msg.field_displayname}" value="#{prof.displayName}" tabindex="1"/>
                  <wh:inputField id="email" label="#{prof.emailConfirmed?msg.field_email:msg.field_email_unconfirmed}" value="#{prof.email}" tabindex="2"/>
                  <wh:inputField id="username" label="#{msg.field_username}" value="#{prof.userName}" tabindex="3"/>
                  <wh:inputSecret id="password" label="#{msg.field_password}" value="#{prof.passWord}" tabindex="4"/>
                  <wh:inputSecret id="passwordconfirm" label="#{msg.field_passwordconfirm}" value="#{prof.passWordConfirm}" tabindex="5"/>
                  <wh:buttonPane>
                     <wh:inputButton id="save-button" action="#{prof.saveAction}" label="#{msg.action_save}" tabindex="6"/>
                     <wh:inputButton id="cancel-button" action="#{prof.cancelAction}" label="#{msg.action_cancel}" tabindex="7"/>
                  </wh:buttonPane>
               </h:form>
            </h:panelGroup>
         </div>

      </ui:define>
   </ui:composition>

</html>

